﻿@model IEnumerable<WebVideo.EntityChat>
<div id="frmChat" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
        <h3>Tin nhắn cho bạn</h3>
    </div>
    <div class="modal-body">
        <div class="msgBox">
            @{
                if(Model.Count() <= 0)
                {
                    <div class="media">
                        Hiện không có tin nhắn mới nào
                    </div>
                }
                foreach (var item in Model)
                {
                    <div class="media">
                        <div class="pull-left" style="width: 34px;">
                            <a href="#">
                                <img class="media-object" src="/Content/Images/Avatar/@item.EntityUser.Avatar" alt="64x64" style="width: 30px; height: 30px;">
                            </a>
                        </div>
                        <div class="media-body">
                            <h5 class="media-heading"><a href="#">@item.UserName</a><a href="#" class="pull-right remove" title="xóa"><i class="icon-remove"></i></a></h5>
                            @Html.ActionLink("Xem chi tiết", "Chat", "Individual", new {Friend = @Request.Cookies["UserId"].Value, FriendChat = item.UserName},null)
                        </div>
                    </div>
                }
            }
        </div>
         <div class="form-horizontal">
             @{
                    if(Request.Cookies["UserId"] != null)
                    {
                        <a type="submit" href="@Url.Action("Chat", "Individual", new { Friend = @Request.Cookies["UserId"].Value, FriendChat = ""},null)" class="btn btn-success pull-right">Xem tất cả</a>
                    }
             }
                 
        </div>
    </div>
</div>
<!--/ .frmEditImg-->
